package com.hjy.service.impl;

import com.hjy.entity.Patient;
import com.hjy.mapper.PatientMapper;
import com.hjy.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PatientServiceImpl implements PatientService {
    @Autowired
    private PatientMapper patientMapper;
    @Override
    public List<Patient> getPatients(Patient patient) {
        return patientMapper.getPatients(patient);
    }

    @Override
    public int total(Patient patient) {
        return patientMapper.total(patient);
    }
}
